Show:

Q rating Class

Implements a way to display a rating

Constructor

Q rating

(
  • [options]
)
Q.Tool

Parameters:

  • [options] Object optional

    Override various options for this tool

    • [value] Number optional

      The value to represent as the rating

    • [max=5] Number optional

      The maximum of the range of values

    • [min=0] Number optional

      The minimum of the range of values

    • [stars] Object optional

      Information about stars

      • [count=5] Number optional
        The maximum number of stars
      • [full] String optional
        Override the img src for the full star
      • [empty] String optional
        Override the img src for the empty star
      • [titles=Q.text.Q.rating.titles] Object optional
        A hash of {fraction: title} pairs

Returns:

Item Index